calculate
fun calculate(dateRanges: Array<DateRange>, book: AccountBook, items: MutableList<BudgetItem>, showAllCategories: Boolean, showZeroes: Boolean, rollupUnbudgetedCats: Boolean = true): Budget.CalculationResults
Compute budgeted and actual amounts, store them in an object that can be used by various clients including the report, dashboard, and budget bars.
Return
Object containing the budget results, including actual and budgeted values.
Parameters
date Ranges
List of date ranges to compute actual and budgeted for.
book
AccountBook containing the main dadtaset.
items
List of budget items to compute with.
show All Categories
True if all categories, including unbudgeted ones, are to be shown.
show Zeroes
True if budget items with no spending and no budgeted amount are to be included.